package com.guoqiang.operator;

public class Demo01 {
    public static void main(String[] args) {
        // 二元运算符
        int a = 10;
        int b = 20;
        int c = 25;
        int d = 25;

        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a / b); // 实际等于0.5，由于是int类型进行了四舍五入，小数部分被舍弃。将b类型转换为double类型即可，如下所示：
        System.out.println(a/(double)b);

    }
}
